<!DOCTYPE html>
<html>

<head>
    <title>vip</title>
    <meta charset="utf-8">
    <style>
        * {
            margin: 0;
            padding: 0;
            font-size: 14px;
        }

        html,
        body {
            height: 100%;
        }

        #container {
            display: flex;
            width: 100%;
            height: 100%;
        }

        #sidebar {
            width: 180px;
            overflow-y: auto;
        }

        #vip_ul li {
            margin: 5px 0 5px 10px;
            cursor: pointer;
        }

        #main {
            flex: 1;
        }

        #video_info {
            display: flex;
            padding: 0 5px;
        }

        #video_info input {
            flex: 1;
        }

        #video_info button {
            width: 120px;
            height: 35px;
            margin-left: 10px;
            cursor: pointer;
        }

        h3 {
            padding: 5px;
        }
    </style>
    <script>
        function changeFrameHeight() {//重置iframe高度
            var ifm = document.getElementById("myiframe");
            ifm.height = document.documentElement.clientHeight - 150;
        }
        window.onresize = function () {
            changeFrameHeight();
        }
        function removeDuplicateObject (arr) {//去重
            let temp = arr.map((item) => {
                return JSON.stringify(item);
            });
            temp = Array.from(new Set(temp));
            return temp.map((item) => {
                return JSON.parse(item);
            });
        }
    </script>
</head>

<body>

    <div id="container">
        <div id="sidebar">
            <ul id="vip_ul">
                
            </ul>
        </div>
        <div id="main">
            <iframe src="https://typescript.bootcss.com/tutorials/typescript-in-5-minutes.html" id="myiframe" onload="changeFrameHeight()" scrolling="yes" height="700" frameborder="0"
                width="100%">

            </iframe>
            <h3></h3>
            <div id="video_info">
                <input type="text" id="videourl" />
                <button id="start_fla">开始解析</button>
            </div>
            <p></p>
        </div>
    </div>
    <script>

        //https://v.qq.com/x/cover/qee75hz1x7m6n3s/x00243heka3.html

        var myapi = '';//接口地址
        var apiObj = [{ "name": "M19", "urls": "https://z1.m1907.cn/?jx=" }, { "name": "古思", "urls": "https://www.2692222.com/?url=" }, { "name": "速派", "urls": "https://okjx.superchen.top/?url=" }, { "name": "暮光", "urls": "https://muguang.mgtv.com.muguangys.com/jiexi.php?url=" }, { "name": "乐多", "urls": "https://api.leduotv.com/wp-api/ifr.php?isDp=1&vid=" }, { "name": "乐乐", "urls": "https://lecurl.cn/?url=" }, { "name": "听乐", "urls": "https://jx.dj6u.com/?url=" }, { "name": "麒麟", "urls": "https://ssvip.sujx.top/?url=" }, { "name": "虾米", "urls": "https://jx.xmflv.com/?url=" }, { "name": "久播", "urls": "https://vip.jiubojx.com/vip/?url=" }, { "name": "夜幕", "urls": "https://www.yemu.xyz/?url=" }, { "name": "木穆", "urls": "https://jx.m3u8.tv/jiexi/?url=" }, { "name": "哔哩", "urls": "https://www.mtosz.com/m3u8.php?url=" }, { "name": "PAR", "urls": "https://vip.parwix.com:4433/player/?url=" }, { "name": "CKP", "urls": "https://www.ckplayer.vip/jiexi/?url=" }, { "name": "OK", "urls": "https://okjx.cc/?url=" }, { "name": "淘A", "urls": "https://jx.1080jx.top/vipjx/?url=" }, { "name": "淘B", "urls": "https://jx.1080jx.top/bt/?url=" }, { "name": "淘C", "urls": "https://jx.1080jx.top/m3u8/?url=" }, { "name": "白A", "urls": "https://jx.baiyu.buzz/aa/?url=" }, { "name": "白B", "urls": "https://jx.baiyu.buzz/bb/?url=" }, { "name": "白C", "urls": "https://jx.baiyu.buzz/cc/?url=" }, { "name": "开放", "urls": "https://api.iopenyun.com:88/vip/?url=" }, { "name": "口袋", "urls": "https://jx.4kdv.com/?url=" }, { "name": "神马", "urls": "https://jxx.smys8.cn/index.php?url=" }, { "name": "刺客", "urls": "https://ckmov.ccyjjd.com/ckmov/?url=" }, { "name": "盘古", "urls": "https://panguapi.ntryjd.net/jiexi/?url=" }, { "name": "专享", "urls": "https://api.jhdyw.vip/?url=" }, { "name": "迪迪", "urls": "https://jx.eptept.com/?url=" }, { "name": "奇米", "urls": "https://qimihe.com/?url=" }, { "name": "解啦", "urls": "https://api.jiexi.la/?url=" }, { "name": "无尽", "urls": "https://51wujin.net/?url=" }, { "name": "核桃", "urls": "https://av.htoo.vip/m3u8.php?url=" }, { "name": "七哥", "urls": "https://jx.mmkv.cn/tv.php?url=" }, { "name": "大白", "urls": "https://api.myzch.cn/?url=" }, { "name": "猪蹄", "urls": "https://jx.iztyy.com/svip/?url=" }, { "name": "人人", "urls": "https://jx.renrenmi.cc/?url=" }, { "name": "扫描", "urls": "https://jxx.smys8.cn/index.php?url=" }, { "name": "无名", "urls": "https://www.administratorw.com/index.php?url=" }, { "name": "漂流", "urls": "https://www.playm3u8.cn/jiexi.php?url=" }, { "name": "依托", "urls": "https://jiexi.us/?url=" }, { "name": "沐白", "urls": "https://www.miede.top/jiexi/?url=" }, { "name": "和巴", "urls": "https://www.h8jx.com/jiexi.php?url=" }, { "name": "猝然", "urls": "https://lecurl.cn/?url=" }, { "name": "垫片", "urls": "https://vip.laobandq.com/jiexi.php?url=" }, { "name": "诺讯", "urls": "https://www.nxflv.com/?url=" }, { "name": "速云", "urls": "https://www.akkdm.com/b/?url=" }, { "name": "迪奥", "urls": "https://123.1dior.cn/?url=" }, { "name": "爱跟", "urls": "https://vip.bljiex.com/?v=" }, { "name": "酷吧", "urls": "https://www.chok8.com/jx/chok/?url=" }, { "name": "影视", "urls": "https://www.jhdyw.vip/jiexi/?url=" }, { "name": "乌玛", "urls": "https://jsap.88wuma.com/?url=" }, { "name": "番茄", "urls": "https://jiexi.fqzy.cc/player/jx.php?url=" }, { "name": "达人", "urls": "https://vip123kan.vip/m3u8.php?url=" }, { "name": "星空", "urls": "https://api.xkvideo.design/m3u8.php?url=" }, { "name": "挨斗", "urls": "https://jx.aidouer.net/?url=" }, { "name": "速搜", "urls": "https://vip.susou.tv/player/?url=" }, { "name": "溜溜", "urls": "https://vip.66parse.club/?url=" }, { "name": "八一", "urls": "https://vip.8bys.cn/?url=" }, { "name": "八二", "urls": "https://jx2.8bys.cn/m3u8.php?url=" }, { "name": "九八", "urls": "https://jx.youyitv.com/?url=" }, { "name": "零七", "urls": "https://jx.pchj.net/jhys/?url=" }, { "name": "初心", "urls": "https://jx.18mv.club/18mv.php?url=" }, { "name": "冰豆", "urls": "https://api.qianqi.net/vip/?url=" }, { "name": "思云", "urls": "https://jx.ap2p.cn/?url=" }, { "name": "星驰", "urls": "https://vip.swuii.top/?url=" }, { "name": "七夕", "urls": "https://1.api.80tvs.cn/?url=" }, { "name": "百度", "urls": "https://bd.bdjxfw.com/?url=" }, { "name": "茄子", "urls": "https://4k.iepig.com/player/analysis.php?v=" }, { "name": "轻巧", "urls": "https://jx.q-q.wang/?url=" }, { "name": "17云", "urls": "http://17kyun.com/api.php?url=" }, { "name": "七彩", "urls": "https://www.xymav.com/?url=" }, { "name": "2090", "urls": "https://m2090.com/?url=" }, { "name": "法克", "urls": "https://jx.4321s.cc/?url=" }, { "name": "方案", "urls": "https://json.m3u8.tv:7788/json.php?url=" }, { "name": "学案", "urls": "https://api.jx.yh0523.cn/api/pgjx-1/api.php?url=" }, { "name": "爱酷", "urls": "http://www.ikukk.com/?ac=0&url=" }];

        var play_line_json =  [
{"name":"纯净1","urls":"https://z1.m1907.cn/?jx="},
{"name":"B站1","urls":"https://vip.parwix.com:4433/player/?url="},
{"name":"爱跟","urls":"https://vip.2ktvb.com/player/?url="},
{"name":"BL","urls":"https://vip.bljiex.com/?v="},
{"name":"CK","urls":"https://www.ckplayer.vip/jiexi/?url="},
{"name":"CHok","urls":"https://www.gai4.com/?url="},
{"name":"冰豆","urls":"https://api.qianqi.net/vip/?url="},
{"name":"百域","urls":"https://jx.618g.com/?url="},
{"name":"ckmov","urls":"https://www.ckmov.vip/api.php?url="},
{"name":"大幕","urls":"https://jx.52damu.com/dmjx/jiexi.php?url="},
{"name":"迪奥","urls":"https://123.1dior.cn/?url="},
{"name":"福星","urls":"https://jx.popo520.cn/jiexi/?url="},
{"name":"跟剧","urls":"https://www.5igen.com/dmplayer/player/?url="},
{"name":"RDHK","urls":"https://jx.rdhk.net/?v="},
{"name":"H8","urls":"https://www.h8jx.com/jiexi.php?url="},
{"name":"解析","urls":"https://ckmov.ccyjjd.com/ckmov/?url="},
{"name":"解析la","urls":"https://api.jiexi.la/?url="},
{"name":"久播","urls":"https://jx.jiubojx.com/vip.php?url="},
{"name":"九八","urls":"https://jx.youyitv.com/?url="},
{"name":"可乐","urls":"https://jx.keleapi.com/?url="},
{"name":"LE","urls":"https://lecurl.cn/?url="},
{"name":"懒猫","urls":"https://api.lanmaody.com/dm/?url="},
{"name":"老板","urls":"https://vip.laobandq.com/jiexi.php?url="},
{"name":"乐多","urls":"https://api.leduotv.com/wp-api/ifr.php?isDp=1&vid="},
{"name":"乐喵","urls":"https://jx.hao-zsj.cn/vip/?url="},
{"name":"Mao","urls":"https://qd.hxys.tv/m3u8.php?url="},
{"name":"M3U8","urls":"https://jx.m3u8.tv/jiexi/?url="},
{"name":"MUTV","urls":"https://jiexi.janan.net/jiexi/?url="},
{"name":"明日","urls":"https://jx.yingxiangbao.cn/vip.php?url="},
{"name":"磨菇","urls":"https://jx.wzslw.cn/?url="},
{"name":"诺诺","urls":"https://www.ckmov.com/?url="},
{"name":"诺讯","urls":"https://www.nxflv.com/?url="},
{"name":"OK","urls":"https://okjx.cc/?url="},
{"name":"PM","urls":"https://www.playm3u8.cn/jiexi.php?url="},
{"name":"盘古","urls":"https://www.pangujiexi.cc/jiexi.php?url="},
{"name":"全民","urls":"https://jx.quanmingjiexi.com/?url="},
{"name":"SSAMAO","urls":"https://www.ssamao.com/jx/?url="},
{"name":"思云","urls":"https://jx.ap2p.cn/?url="},
{"name":"思古","urls":"https://api.sigujx.com/?url="},
{"name":"思古2","urls":"https://api.bbbbbb.me/jx/?url="},
{"name":"思古3","urls":"https://jsap.attakids.com/?url="},
{"name":"淘电影","urls":"https://jx.vodjx.top/vip/?url="},
{"name":"听乐","urls":"https://jx.dj6u.com/?url="},
{"name":"维多","urls":"https://jx.ivito.cn/?url="},
{"name":"虾米","urls":"https://jx.xmflv.com/?url="},
{"name":"小蒋","urls":"https://www.kpezp.cn/jlexi.php?url="},
{"name":"小狼","urls":"https://jx.yaohuaxuan.com/?url="},
{"name":"星驰","urls":"https://vip.cjys.top/?url="},
{"name":"月亮","urls":"https://api.yueliangjx.com/?url="},
{"name":"云端","urls":"https://jx.ergan.top/?url="},
{"name":"云析","urls":"https://jx.yparse.com/index.php?url="},
{"name":"0523","urls":"https://go.yh0523.cn/y.cy?url="},
{"name":"17云","urls":"https://www.1717yun.com/jx/ty.php?url="},
{"name":"66","urls":"https://api.3jx.top/vip/?url="},
{"name":"116","urls":"https://jx.116kan.com/?url="},
{"name":"200","urls":"https://vip.66parse.club/?url="},
{"name":"8090","urls":"https://www.8090g.cn/?url="}
];
        //console.log(JSON.stringify(play_line_json));
        //合并两组数据
        let jsonArr=[...apiObj,...play_line_json];
        let arr=removeDuplicateObject(jsonArr);//去重
        console.log(removeDuplicateObject(jsonArr));

        /*左侧接口列表*/
        var _html="";
        for (var i=0;i<arr.length;i++){
            _html+="<li data-index=\""+i+"\">";
            _html+="<span>";
            _html+=arr[i].name;
            _html+="</span>";   
            _html+="</li>";
        }
        var vip_ul=document.getElementById('vip_ul');
        vip_ul.innerHTML=_html;        

        /*列表点击事件*/
        var vip_list=document.getElementsByTagName('li');
        for (var i = 0; i < vip_list.length; i++) {
            vip_list[i].index = i;
            vip_list[i].onclick = function () {
                console.log(this.index);
                myapi = arr[this.index]['urls'];//接口地址
                document.getElementsByTagName('h3')[0].textContent = arr[this.index]['name'];
                //document.getElementById('videourl').value='';//清除input的值
            }
        }
        /*提交解析*/
        document.getElementById('start_fla').onclick = function () {
            console.log(myapi);
            //视频地址
            var videourl = document.getElementById('videourl').value;
            //console.log(videourl)
            //拼接解析地址
            document.getElementById('myiframe').src = myapi + '' + videourl;
            document.getElementsByTagName('p')[0].textContent = myapi + '' + videourl;
        }

    </script>
</body>

</html>